﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.WebApi
{
    static class ErrorCode
    {
        private static Hashtable s_comments = new Hashtable();

        public const int Config_AssemblyFolderNotFound = 0xFE0000;
        public const int InvalidFileType_DLL = 0xFE0001;
        public const int NoFile = 0xFE0002;
        public const int InvalidFileType_EXCEL = 0xFE0003;

        static ErrorCode()
        {
            s_comments.Add(Config_AssemblyFolderNotFound, "没有AssemblyFolder的配置信息");
            s_comments.Add(InvalidFileType_DLL, "文件类型不匹配,需要DLL文件");
            s_comments.Add(NoFile, "没有文件");
            s_comments.Add(InvalidFileType_EXCEL, "文件类型不匹配,需要Excel文件");
        }

        public static string String(int code)
        {
            return ((string)s_comments[code]);
        }
    }
}
